package com.itheima.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.domain.Employee;

public interface EmployeeService {
    /**
     * 首页登录
     * @param employee
     * @return
     */
    Employee login(Employee employee);

    /**
     *分页
     * @param page
     * @param pageSize
     * @param name
     * @return
     */
    Page<Employee> page(Integer page, Integer pageSize, String name);

    /**
     * 员工新增
     * @param employee
     * @return
     */
    int empadd(Employee employee);

    /**
     * 员工信息回显
     * @param id
     * @return
     */
    Employee findById(Long id);

    /**
     * 员工启用禁用
     * @param employee
     * @return
     */
    int states(Employee employee);

}
